package com.spbl.web;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;

/**
 * Description(这里用一句话描述这个方法的作用)
 * author: Gao xueyong
 * Create at: 2020/5/30 4:24 下午
 */
@Slf4j
@RequestMapping("/user")
@RestController
public class UserController {

    @GetMapping("/list")
    public List<String> userList() {
        return Arrays.asList("小明", "小红", "东子");
    }
}
